package cn.com.surker.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 供应商收款账户
 * </p>
 *
 * @author admin
 * @since 2022-10-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class OaSupplierAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标识
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 收款名称
     */
    private String realName;

    /**
     * 开户行
     */
    private String bankName;

    /**
     * 银行账户
     */
    private String bankNo;

    /**
     * 供应商ID
     */
    private Long sid;

    /**
     * 公司ID
     */
    private Long orgId;

    /**
     * 创建人id
     */
    private Long uid;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 状态(0:启用1:禁用)
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 公司名称
     */
    private String orgName;

    public OaSupplierAccount(){}

    public OaSupplierAccount(String realName, String bankName, String bankNo, Long sid, Long orgId, Long uid,
                             String creator, Integer status, String remark, Date createTime, String orgName) {
        this.realName = realName;
        this.bankName = bankName;
        this.bankNo = bankNo;
        this.sid = sid;
        this.orgId = orgId;
        this.uid = uid;
        this.creator = creator;
        this.status = status;
        this.remark = remark;
        this.createTime = createTime;
        this.orgName = orgName;
    }
}
